import { ApiProperty } from '@nestjs/swagger';
import { BaseAdminResult } from "@/common/base/base.result";

export class AdminLoginResult {
  @ApiProperty()
  token: string;
}

export class AdminIndexResult extends BaseAdminResult{
  @ApiProperty()
  id: number;

  @ApiProperty()
  username: string;

  @ApiProperty()
  name: string;

  @ApiProperty()
  mobile: string;

  @ApiProperty()
  job: string;

  @ApiProperty()
  status: number;

  @ApiProperty()
  roleNames: string[];
}

class AdminMineResultResource{
  @ApiProperty()
  name: string;

  @ApiProperty()
  key: string;
}
export class AdminMineResult extends BaseAdminResult{
  @ApiProperty()
  username: string;

  @ApiProperty()
  name: string;

  @ApiProperty()
  mobile: string;

  @ApiProperty()
  job: string;

  @ApiProperty()
  status: number;

  @ApiProperty()
  roleNames: string[];

  @ApiProperty()
  resources: string[];
}

